<% if @issue.persisted? %>
  <%= turbo_stream.append "#{ @grouping.id }-cards-wrapper", partial: "visualizations/card", locals: {
    scroll_on_connect: true,
    visualization: current_visualization,
    issue: @issue
  } %>
  <%= turbo_stream.update 'issue_detail', "" %>
  <%= new_turbo_stream_alert_message(:success, t_flash_message(@issue)) %>
<% else %>
  <%= new_turbo_stream_alert_message(:error, @issue.errors.full_messages.to_sentence) %>
<% end %>
